﻿<!DOCTYPE html>
<!--作业基本信息配置列表-->
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
        <script src="/static/js/common.js"></script>


    <style>
        .el-dialog__body {
            height: 100% !important;
        }

        .el-dialog.is-fullscreen {
            overflow: hidden !important;
        }
 
        body {
            padding-bottom: 10px;
        }

        .el-col {
            padding: 10px;
            font-size: 14px;
        }
        td {
            padding: 10px;
            font-size: 14px;
        }

        .el-form-item {
            margin-bottom: 0px !important;
        }

        .el-input-group__prepend{
            color: #000;
            font-size: 14px;
        }

        .el-input__inner{
            color: #606266!important
        }

        .el-input-group__prepend {
            padding-left: 0
        }

        .el-input-group__prepend,
        .el-input__inner,
        .el-form-item__label {
            color: #000;
            font-size: 14px;
        }

        .el-form-item__label{
            padding-left: 0!important;
        }

        .el-input-group__prepend {
            padding-left: 0
        }
    </style>
</head>
<body>
    
<div id="app" v-cloak>   
        <div style="width:100%;text-align:center ">
            <label style="font-weight:bold">高处作业安全许可证</label>
        </div>

        <div style="width:100%;text-align:right " >
            <label>  {{HighWorkSafetyPermit.ApplicationNumber+mark.m}} {{Form.ApplicationNumber}}</label>
        </div>
        <el-form :model="Form" status-icon style="margin-top:5px;width:100%" class="safeCard">
            <!--<el-row type="flex" justify="end">
        <el-col span="23">
            {{HighWorkSafetyPermit.ApplicationNumber+mark.m}} {{Form.ApplicationNumber}}
        </el-col>
    </el-row>-->


            <table style="border:1px  solid; width:100%" cellpadding="0" cellspacing="0">
                <!--作业单位 属地单位 作业区域-->
                <tr style="border:1px  solid;">
                    <td width="10%" rowspan="5" style="text-align:center;border-right:1px solid ">工作内容</td>
                    <td width="30%" style="border-right:1px solid;border-bottom:1px solid  ">
                        <div class="elst-select-mini">
                            <el-form-item>
                                <el-input size="mini">
                                    <template slot="prepend">
                                        <div>{{HighWorkSafetyPermit.OperatingUnit+mark.m}}</div>
                                    </template>
                                    <el-select @visible-change="visibleChange" v-model="Form.OperatingUnit" slot="suffix" :placeholder="HighWorkSafetyPermit.OperatingUnit">
                                        <el-option label="请选择" value=""></el-option>
                                        <el-option v-for="item in OperatingUnit" :label="item.value" :value="item.key">
                                        </el-option>
                                    </el-select>
                                </el-input>
                            </el-form-item>
                        </div>
                    </td>
                    <td width="30%" style="border-right:1px solid;border-bottom:1px solid  ">
                        <div class="elst-select-mini">
                            <el-form-item>
                                <el-input size="mini">
                                    <template slot="prepend">
                                        <div>{{HighWorkSafetyPermit.TerritorialDepartment+mark.m}}</div>
                                    </template>
                                    <el-select @visible-change="visibleChange" v-model="Form.TerritorialDepartment" slot="suffix" :placeholder="HighWorkSafetyPermit.TerritorialDepartment">
                                        <el-option label="请选择" value=""></el-option>
                                        <el-option v-for="item in TerritorialDepartment" :label="item.value" :value="item.key">
                                        </el-option>
                                    </el-select>
                                </el-input>
                            </el-form-item>
                        </div>
                    </td>
                    <td width="30%" style="border-bottom:1px solid">
                        <div class="elst-select-mini">
                            <el-form-item>
                                <el-input size="mini">
                                    <template slot="prepend">
                                        <div>{{HighWorkSafetyPermit.WorkingArea+mark.m}}</div>
                                    </template>
                                    <el-select @visible-change="visibleChange" v-model="Form.WorkingArea" slot="suffix" :placeholder="SimpleLiftingOperation.WorkingArea">
                                        <el-option label="请选择" value=""></el-option>
                                        <el-option v-for="item in WorkingArea" :label="item.value" :value="item.key">
                                        </el-option>
                                    </el-select>
                                </el-input>
                            </el-form-item>
                        </div>
                    </td>
                </tr>

                <!--作业位置作业高度-->
                <tr>
                    <td width="30%" style="border-right:1px solid;border-bottom:1px solid " colspan="2">
                        <div class="elst-select-mini">
                            <el-form-item>
                                <el-input type="text" v-model="Form.JobLocation" autocomplete="off" size="mini">
                                    <template slot="prepend">
                                        {{HighWorkSafetyPermit.JobLocation+mark.m}}
                                    </template>
                                </el-input>
                            </el-form-item>
                        </div>
                    </td>

                    <td width="30%" style="border-bottom:1px solid;padding-left:10px">
                        <el-form-item :label="HighWorkSafetyPermit.WorkHeight+mark.m" class="inputTextarea">
                            <!--<el-input-number  v-model="HighWorkSafetyPermit.WorkHeight"></el-input-number>-->
                            <el-input-number size="small" v-model="Form.WorkHeight" @change="handleChange" :min="1"></el-input-number>
                        </el-form-item>
                    </td>
                </tr>

                <!--涉及其他特殊作业--><!--作业描述-->
                <tr>
                    <td colspan="3" style="border-bottom:1px solid;padding-left:10px">
                        <el-form-item :label="HighWorkSafetyPermit.WorkContent+mark.m">
                            <el-input type="textarea" style="width:90%;margin-top:3px;border:none" v-model="Form.WorkContent"></el-input>
                        </el-form-item>
                    </td>
                </tr>
                <!--涉及其他特殊作业-->
                <tr>
                    <td colspan="3" style="border-bottom:1px solid;padding-left:10px">
                        <el-form-item :label="HighWorkSafetyPermit.InvolvingOtherSpecialOperations+mark.m">
                            <el-input type="textarea" style="width:90%;margin-top:3px;border:none" v-model="Form.InvolvingOtherSpecialOperations"></el-input>
                        </el-form-item>
                    </td>
                </tr>

                <!--承包商 等级-->
                <tr>
                    <td colspan="2" width="60%" style="border-right:1px solid  ">
                        <div class="elst-select-mini">
                            <el-form-item>
                                <el-input size="mini">
                                    <template slot="prepend">
                                        <div>{{HighWorkSafetyPermit.contractor+mark.m}}</div>
                                    </template>
                                    <el-select @visible-change="visibleChange" v-model="Form.contractor" slot="suffix" :placeholder="HighWorkSafetyPermit.contractor">
                                        <el-option label="请选择" value=""></el-option>
                                        <el-option v-for="item in contractor" :label="item.value" :value="item.key">
                                        </el-option>
                                    </el-select>
                                </el-input>
                            </el-form-item>
                        </div>
                    </td>
                    <td width="30%">
                        <div class="elst-select-mini">
                            <el-form-item>
                                <el-input size="mini">
                                    <template slot="prepend">
                                        <div>{{HighWorkSafetyPermit.Level+mark.m}}</div>
                                    </template>
                                    <el-select @visible-change="visibleChange" v-model="Form.Level" slot="suffix" :placeholder="HighWorkSafetyPermit.Level">
                                        <el-option label="请选择" value=""></el-option>
                                        <el-option v-for="item in Level" :label="item.value" :value="item.key">
                                        </el-option>
                                    </el-select>
                                </el-input>
                            </el-form-item>
                        </div>
                    </td>
                </tr>
            </table>
            <!--//安全措施-->
            <el-row style="border:1px  solid; border-top:0px;    ">
                <el-col span="24" >
                    <el-table :data="Form.HazardIdentification"
                              border
                              >
                        <el-table-column type="index" :label="JobLicenseManagement.SerialNumber"
                                         :index="indexMethod" width="50" show-overflow-tooltip="true"></el-table-column>
                        <el-table-column prop="SafetyMeasures"
                                         :label="HighWorkSafetyPermit.SafetyMeasures">
                        </el-table-column>

                        <el-table-column :label="HighWorkSafetyPermit.Department" width="180px">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.Department" placeholder="请选择">
                                    <el-option v-for="item in TerritorialDepartment" :key="item.key" :label="item.value" :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column :label="HighWorkSafetyPermit.Confirmor" width="130px">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.Confirmor" placeholder="请选择">
                                    <el-option v-for="item in Confirmor" :key="item.key" :label="item.value" :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                    </el-table>
                </el-col>
            </el-row>

            <!--基于数据库管控要求-->
            <!--<el-row style="border:1px  solid;border-top:0px;  ">
                  <el-col span="24">
                      <label>{{HighWorkSafetyPermit.BasedDatabaseManagementRequirements+mark.m}}</label>
                      <a href="javascript:void(0)" v-on:click="RiskInformationBase('tj')">添加</a>
                  </el-col>
              </el-row>-->
              <!--基于数据库管控要求-->
            <!-- <el-row style="border:1px  solid; border-top:0px;    ">
        <el-col span="24" >
            <el-table :data="Form.BasedDatabaseManagementRequirements"
                      border
                      >
                <el-table-column prop="Risk"
                                 :label="EquipmenFacilities.Risk">
                </el-table-column>
                <el-table-column prop="ControlRequirement"
                                 :label="HighWorkSafetyPermit.ControlRequirements">
                </el-table-column>

                <el-table-column :label="HighWorkSafetyPermit.ControlDepartment" width="180px">
                    <template slot-scope="scope">
                        <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.ControlDepartment" placeholder="请选择">
                            <el-option v-for="item in TerritorialDepartment" :key="item.key" :label="item.value" :value="item.key"></el-option>
                        </el-select>
                    </template>
                </el-table-column>
                <el-table-column :label="HighWorkSafetyPermit.ControlConfirmor" width="130px">
                    <template slot-scope="scope">
                        <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.ControlConfirmor" placeholder="请选择">
                            <el-option v-for="item in Confirmor" :key="item.key" :label="item.value" :value="item.key"></el-option>
                        </el-select>
                    </template>
                </el-table-column>
            </el-table>
        </el-col>
    </el-row>
       -->
            <!--作业人：-->
            <el-row style="border:1px  solid;border-top:0px;  ">
                <el-col span="24">
                    <label>{{HighWorkSafetyPermit.Operator+mark.m}}</label><a href="javascript:void(0)" @click="OperatorInput('tj')">添加</a>
                </el-col>
            </el-row>
            <!--作业人数据-->
            <el-row style="border:1px  solid; border-top:0px;    ">
                <el-col span="24" >
                    <el-table :data="Form.Operator"
                              border
                              >
                        <el-table-column :label="HighWorkSafetyPermit.OperatorUnit">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.OperatorUnit" placeholder="请选择">
                                    <el-option v-for="item in OperatingUnit" :key="item.key" :label="item.value" :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column :label="HighWorkSafetyPermit.OperatorConfirmor">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.OperatorConfirmor" placeholder="请选择">
                                    <el-option v-for="item in Confirmor" :key="item.key" :label="item.value" :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column label="操作">
                            <template slot-scope="scope">
                                <el-button @click.native.prevent="deleteRow(scope.$index, Form.Operator)"
                                           type="text"
                                           size="small">
                                    移除
                                </el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                </el-col>
            </el-row>

            <!--HSE部安全员：-->
            <el-row style="border:1px  solid;border-top:0px;  ">
                <el-col span="24">
                    <label>{{HighWorkSafetyPermit.HSESecurityOfficer+mark.m}}</label><a href="javascript:void(0)" @click="HSESecurityOfficerInput('tj')">添加</a>
                </el-col>
            </el-row>
            <!--HSE部安全员数据-->
            <el-row style="border:1px  solid; border-top:0px;    ">
                <el-col span="24" >
                    <el-table :data="Form.HSESecurityOfficer"
                              border
                              >
                        <el-table-column :label="HighWorkSafetyPermit.HSESecurityOfficerUnit">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.HSESecurityOfficerUnit" placeholder="请选择">
                                    <el-option v-for="item in OperatingUnit" :key="item.key" :label="item.value" :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column :label="HighWorkSafetyPermit.HSESecurityOfficerConfirmor">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.HSESecurityOfficerConfirmor" placeholder="请选择">
                                    <el-option v-for="item in Confirmor" :key="item.key" :label="item.value" :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column label="操作">
                            <template slot-scope="scope">
                                <el-button @click.native.prevent="deleteRow(scope.$index, Form.HSESecurityOfficer)"
                                           type="text"
                                           size="small">
                                    移除
                                </el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                </el-col>
            </el-row>

            <!--监护人-->
            <el-row style="border:1px  solid;border-top:0px;  ">
                <el-col span="24">
                    <label>{{HighWorkSafetyPermit.Guardian+mark.m}}</label>     <a href="javascript:void(0)" @click="GuardianInput('tj')">添加</a>
                </el-col>
            </el-row>
            <!--监护人数据-->
            <el-row style="border:1px  solid; border-top:0px;    ">
                <el-col span="24" >
                    <el-table :data="Form.Guardian"
                              border
                              >
                        <el-table-column :label="HighWorkSafetyPermit.GuardianUnit">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.GuardianUnit" placeholder="请选择">
                                    <el-option v-for="item in OperatingUnit" :key="item.key" :label="item.value" :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column :label="HighWorkSafetyPermit.GuardianConfirmor">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.GuardianConfirmor" placeholder="请选择">
                                    <el-option v-for="item in Confirmor" :key="item.key" :label="item.value" :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column label="操作">
                            <template slot-scope="scope">
                                <el-button @click.native.prevent="deleteRow(scope.$index, Form.Guardian)"
                                           type="text"
                                           size="small">
                                    移除
                                </el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                </el-col>
            </el-row>

            <!--属地审核人-->
            <el-row style="border:1px  solid;border-top:0px;  ">
                <el-col span="24">
                    <label>{{HighWorkSafetyPermit.TerritorialReviewer+mark.m}}</label>     <a href="javascript:void(0)" @click="TerritorialReviewerInput('tj')">添加</a>
                </el-col>
            </el-row>
            <!--属地审核人数据-->
            <el-row style="border:1px  solid; border-top:0px;    ">
                <el-col span="24" >
                    <el-table :data="Form.TerritorialReviewer"
                              border
                              >
                        <el-table-column :label="HighWorkSafetyPermit.TerritorialReviewerUnit">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.TerritorialReviewerUnit" placeholder="请选择">
                                    <el-option v-for="item in OperatingUnit" :key="item.key" :label="item.value" :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column :label="HighWorkSafetyPermit.TerritorialReviewerConfirmor">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.TerritorialReviewerConfirmor" placeholder="请选择">
                                    <el-option v-for="item in Confirmor" :key="item.key" :label="item.value" :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column label="操作">
                            <template slot-scope="scope">
                                <el-button @click.native.prevent="deleteRow(scope.$index, Form.TerritorialReviewer)"
                                           type="text"
                                           size="small">
                                    移除
                                </el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                </el-col>
            </el-row>

            <!--生产部/HSE部审核人-->
            <el-row style="border:1px  solid;border-top:0px;  ">
                <el-col span="24">
                    <label>{{HighWorkSafetyPermit.Production+mark.m}}</label>     <a href="javascript:void(0)" @click="ProductionInput('tj')">添加</a>
                </el-col>
            </el-row>
            <!--生产部/HSE部审核人数据-->
            <el-row style="border:1px  solid; border-top:0px;    ">
                <el-col span="24" >
                    <el-table :data="Form.Production"
                              border
                              >
                        <el-table-column :label="HighWorkSafetyPermit.ProductionUnit">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.ProductionUnit" placeholder="请选择">
                                    <el-option v-for="item in OperatingUnit" :key="item.key" :label="item.value" :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column :label="HighWorkSafetyPermit.ProductionConfirmor">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.ProductionConfirmor" placeholder="请选择">
                                    <el-option v-for="item in Confirmor" :key="item.key" :label="item.value" :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column label="操作">
                            <template slot-scope="scope">
                                <el-button @click.native.prevent="deleteRow(scope.$index, Form.Production)"
                                           type="text"
                                           size="small">
                                    移除
                                </el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                </el-col>
            </el-row>

            <!--总经理/生产部和HSE部经理会签审核-->
            <el-row style="border:1px  solid;border-top:0px;  ">
                <el-col span="24">
                    <label>{{HighWorkSafetyPermit.GeneralManager+mark.m}}</label>     <a href="javascript:void(0)" @click="GeneralManagerInput('tj')">添加</a>
                </el-col>
            </el-row>
            <!--总经理/生产部和HSE部经理会签审核数据-->
            <el-row style="border:1px  solid; border-top:0px;    ">
                <el-col span="24" >
                    <el-table :data="Form.GeneralManager"
                              border
                              >
                        <el-table-column :label="HighWorkSafetyPermit.GeneralManagerUnit">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.GeneralManagerUnit" placeholder="请选择">
                                    <el-option v-for="item in OperatingUnit" :key="item.key" :label="item.value" :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column :label="HighWorkSafetyPermit.GeneralManagerConfirmor">
                            <template slot-scope="scope">
                                <el-select @visible-change="visibleChange" @change="handleSelect" v-model="scope.row.GeneralManagerConfirmor" placeholder="请选择">
                                    <el-option v-for="item in Confirmor" :key="item.key" :label="item.value" :value="item.key"></el-option>
                                </el-select>
                            </template>
                        </el-table-column>
                        <el-table-column label="操作">
                            <template slot-scope="scope">
                                <el-button @click.native.prevent="deleteRow(scope.$index, Form.GeneralManager)"
                                           type="text"
                                           size="small">
                                    移除
                                </el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                </el-col>
            </el-row>

            <el-row style="border:1px  solid;border-top:0px;  ">
                <el-col span="24">
                    <label>{{HighWorkSafetyPermit.RelatedForm+mark.m}}</label>
                </el-col>
            </el-row>

            <el-row style="border:1px  solid; border-top:0px;    ">
                <el-col span="24" >
                    <el-table :data="Form.RelatedForm"
                              border
                              >
                        <el-table-column prop="RelatedFormName" :label="HighWorkSafetyPermit.RelatedFormName">

                        </el-table-column>

                        <el-table-column prop="RelatedFormNo" :label="HighWorkSafetyPermit.RelatedFormNo">

                        </el-table-column>
                        <el-table-column width="53" prop="update" :label="col.btnUpdate" fixed="right">
                            <template slot-scope="scope">
                                <button type="button" class="elst-bt-xg" @click=Bianji('xg',scope.row.id)>
                                    <i class="el-icon-edit"></i>
                                </button>
                            </template>
                        </el-table-column>
                    </el-table>
                </el-col>
            </el-row>

            <el-row>
                <el-form-item style="text-align:center; padding-top:5px">
                    <!--<el-button type="primary" @click="onSubmitForm('ruleForm')">{{col.btnSave}}</el-button>-->
                    <el-button type="primary" @click="onSubmitForm('ruleForm')">{{col.btnCommit}}</el-button>
                </el-form-item>
            </el-row>
        </el-form>
        <el-dialog :title="title" :visible.sync="ListItem.dialogVisible" height="95%" top="10vh" fullscreen="true">
            <iframe ref="iframe" :src="ListItem.InputUrl" style="height:95%;width:100%" frameborder="0"></iframe>
        </el-dialog>
    </div>
    <script type="text/javascript">
        app = new Vue({
            el: '#app',
            data: {
                id: '',
                title:'',
                Form: {
                    id: guidEmpty,
                    ApplicationNumber:'',
                    ApplicationTime: '',
                    OperatingUnit: '',
                    JobManagere: '',
                    JobLocation: '',
                    JobStartTime: '',
                    JobEndTime: '',
                    TerritorialDepartment: '',
                    CurrentJob: '',
                    WorkingArea: '',
                    Level: '',
                    WorkContent: '',
                    WorkHeight: '',
                    InvolvingOtherSpecialOperations: '',
                    contractor: '',
                    SafetyMeasures: '',
                    Department: '',
                    Confirmor: '',
                    BasedDatabaseManagementRequirements: '',
                    ControlRequirements: '',
                    ControlDepartment: '',
                    ControlConfirmor: '',
                    Operator: [],
                    HSESecurityOfficer: '',
                    HSESecurityOfficerUnit: '',
                    HSESecurityOfficerConfirmor: '',
                    Guardian:'',
                    GuardianUnit: '',
                    GuardianConfirmor:'',
                    TerritorialReviewer: '',
                    TerritorialReviewerUnit: '',
                    TerritorialReviewerConfirmor: '',
                    Production:'',
                    GeneralManager: '',
                    GeneralManagerUnit:'',
                    GeneralManagerConfirmor: '',
                    RelatedForm: '',
                    RelatedFormName:'',
                    RelatedFormNo:'',
                    RelatedPeople: '',
                    RelatedTime: '',
                },
                TerritorialDepartment: [],
                Level: [],
                OperatingUnit:[],
                IsDevelopSafetyPlan: [],
                contractor: [],
                Confirmor: [],
                rules: {},
                WorkingArea:{},
                BasedDatabaseManagementRequirements: [],
                ListItem: ListItem,
            },
            methods: {
                //解決edge下select bug
                visibleChange: function (isVisible) {
                    visibleChange(isVisible)
                },

                indexMethod: function (index) {
                    return (this.ListItem.currentPage - 1) * this.ListItem.pagesize + index + 1;
                },
                handleChange: function (value) {
                    console.log(value);
                },
                handleSelect: function(ev) {
                    console.log(ev);
                },
                deleteRow: function (index, rows) {
                    rows.splice(index, 1);
                },
                getData: function () {
                    getDataAdd(this, '/api/HighWorkSafetyPermit/get?id=' + this.id);
                },
                Bianji: function (val, id) {
                    this.title = "相关表格管理";
                    DialogShow(this, val, "../GeneralLiftingWorkSafety/RelatedTableList.html", id);
                },        
                //作业人：
                OperatorInput: function (val, id) {
                    this.title = "作业人管理";
                    DialogShow(this, val, "OperatorInput.html", id);
                },      
                //HSE部安全员：
                HSESecurityOfficerInput: function (val, id) {
                    this.title = "HSE部安全员管理";
                    DialogShow(this, val, "HSESecurityOfficerInput.html", id);
                },      
                //监护人
                GuardianInput: function (val, id) {
                    this.title = "监护人管理";
                    DialogShow(this, val, "GuardianInput.html", id);
                },    
                //属地审核人：
                TerritorialReviewerInput: function (val, id) {
                    this.title = "属地审核人管理";
                    DialogShow(this, val, "TerritorialReviewerInput.html", id);
                },    
                //生产部/HSE部审核人：
                ProductionInput: function (val, id) {
                    this.title = "生产部/HSE部审核人管理";
                    DialogShow(this, val, "ProductionInput.html", id);
                },   
                //总经理/生产部和HSE部经理会签审核
                GeneralManagerInput: function (val, id) {
                    this.title = "总经理/生产部和HSE部经理会签审核管理";
                    DialogShow(this, val, "GeneralManagerInput.html", id);
                },   
                RiskInformationBase: function (val, id) {
                    this.title = "基于数据库管控要求管理";
                    DialogShow(this, val, "../GeneralLiftingWorkSafety/RiskInformationBase.html", id);
                },
                //提交数据
                onSubmitForm: function (formName) {
                    var mythis = this;
                    console.log(mythis)
                    //this.$refs[formName].validate(function (valid) {
                    //    //验证通过
                    //    if (valid) {
                    onSubmitForm(this, '/api/HighWorkSafetyPermit/Save', mythis.Form);
                    //} else {
                    //    //验证失败
                    //    return false;
                    //}
                    //});
                },
            },
            mounted: function () {
                var list = getDicDataArray(['14', '03', '50', '12', '09', '08','97']);
                this.OperatingUnit = getDicDatafromArray('08', list);//工作类型
                this.TerritorialDepartment = getDicDatafromArray('14', list);//工作类型
                this.Level = getDicDatafromArray('03', list);//工作类型
                this.IsDevelopSafetyPlan = getDicDatafromArray('50', list);//工作类型
                this.contractor = getDicDatafromArray('12', list);//工作类型
                this.Confirmor = getDicDatafromArray("09", list);//批准人
                this.WorkingArea = getDicDatafromArray("97", list);//作业区域
                this.id = getUrlParam("id");
                this.getData();
              //this.BasedDatabaseManagementRequirements = this.Form.BasedDatabaseManagementRequirements;              
            }
        });
    </script>
</body>
</html>